var gulp=require('gulp');
var mocha=require('gulp-mocha');

gulp.task('default',['tdd']);

var srcs=['web/tsc'];

gulp.task('tdd',function(){
	return gulp.src(srcs,{read:false})
			.pipe(mocha({
				reporter:'mochawesome',
				globals:{
					chai:require('chai')
				},
				timeout:5000
			}));
});

gulp.task('watch-tdd',function(){
	gulp.watch(srcs,['tdd']);
})